#ifndef __DAC128S085_H__
#define	__DAC128S085_H__

#include <rtthread.h>

struct DEV_DAC{
		struct rt_spi_device	*spi_dev;
		rt_uint16_t						pin_sync;
		rt_uint16_t						pin_ttl;
		rt_uint16_t						cmd[3];
		rt_uint8_t						flag;
		void 									(*wrt_cmd)(void *p);
};




void ds128s085_spi_init(void);
static void dac128s085_wrt_cmd(void *p);

















#endif



